package camel.corp.universalcopy;

import android.content.SharedPreferences;
import com.camel.corp.universalcopy.CopyActivity;
import com.camel.corp.universalcopy.H;
import com.camel.corp.universalcopy.a;
import com.camel.corp.universalcopy.o;

class o implements CopyActivity.a {
  o(CopyActivity paramCopyActivity, SharedPreferences paramSharedPreferences) {}
  
  private void a(String paramString1, String paramString2, H paramH) {
    CopyActivity copyActivity;
    paramString1 = this.a.getString(paramString1, paramString2);
    if ("copy".equals(paramString1)) {
      CopyActivity.b(copyActivity, (copyActivity = this.b).h(copyActivity));
      return;
    } 
    if ("share".equals(copyActivity)) {
      CopyActivity.a(this.b, new a(this));
      return;
    } 
    if ("edit".equals(copyActivity)) {
      CopyActivity.b(this.b);
      if (paramH.a())
        CopyActivity.j(this.b); 
    } 
  }
  
  public void a() { CopyActivity.b(this.b); }
  
  public void a(H paramH) {
    if (paramH.a() && !CopyActivity.a(this.b).contains(paramH))
      CopyActivity.a(this.b).add(paramH); 
    if (!paramH.a())
      CopyActivity.a(this.b).remove(paramH); 
  }
  
  public void b(H paramH) { a("shortcut_doubletap", "copy", paramH); }
  
  public void c(H paramH) { a("shortcut_longpress", "edit", paramH); }
}


/* Location:              D:\Users\alienware\AndroidStudioProjects\Lazero\sample\sampler\classes-dex2jar\com\camel.jar!\camel\cor\\universalcopy\o.class
 * Java compiler version: 6 (50.0)
 * JD-Core Version:       1.0.7
 */